package com.dkm.ec.home.repository.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.repository.AbstractRepository;
import com.dkm.ec.home.domain.HomeOrder;
import com.dkm.ec.home.persistence.dao.HomeOrderQueryDao;
import com.dkm.ec.home.persistence.entity.HomeOrderPo;
import com.dkm.ec.home.repository.HomeOrderRepository;

/**
 * 对象功能:预约 Repository接口的实现类
 * 开发公司:SKG.COM
 * 开发人员:胡协斌
 * 创建时间:2014-12-23 14:33:21
 */
@Repository
public class HomeOrderRepositoryImpl extends AbstractRepository<String, HomeOrderPo,HomeOrder> implements HomeOrderRepository{
	  
	@Resource
	private  HomeOrderQueryDao homeOrderQueryDao;

	public HomeOrder newInstance() {
		HomeOrderPo po = new HomeOrderPo();
		HomeOrder homeOrder = SpringHelper.getBean(HomeOrder.class);
		homeOrder.setData(po);
		return homeOrder;
	}

	public HomeOrder newInstance(HomeOrderPo po) {
		HomeOrder homeOrder = SpringHelper.getBean(HomeOrder.class);
		homeOrder.setData(po);
		return homeOrder;
	} 
	
	@Override
	protected IQueryDao<String, HomeOrderPo> getQueryDao() {
		return homeOrderQueryDao;
	}
	
}
